﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace Core
{
    class MessageManager
    {
        Connector _connector;
        string _serverIp;
        int _serverPort;
        BinaryReader _reader;
        BinaryWriter _writer;

        public MessageManager(string serverIp, int serverPort)
        {
            _connector = new Connector();
            _serverIp = serverIp;
            _serverPort = serverPort;
            _connector.Connect(_serverIp, _serverPort);
            _reader = new BinaryReader(_connector.Connection.GetStream());
            _writer = new BinaryWriter(_connector.Connection.GetStream());
        }

        public void SendMessage(string message)
        {

        }

        public void RecieveMessage()
        {

        }

        public void DispatchMessage()
        {

        }

        public void RegisterListener()
        {

        }

        public void UnregisterListener()
        {

        }

    }
}
